<div class="context">
      <form method="get" action="<?php echo $this->Html->url(array('controller'=> 'default','action'=>'search')); ?>" name="frmSearch" id="frmSearch" class="frmSearch">
        <span class="searchBox">
        <input type="text" value="Tìm kiếm" id="txtSearch" name="q" />
        <a href="javascript:void();" id="quick-search-submit" title="Search">&nbsp;</a> </span> <a href="javascript:void();" title="Tìm kiếm nâng cao" class="linkSearch">Tìm kiếm nâng cao</a>
        <input type="hidden" value="001897934961332779774:ysd417-tqpk" name="cx" />
        <input type="hidden" value="FORID:10" name="cof">
        <input type="hidden" value="UTF-8" name="ie">
      </form>
  <!--frmSearch-->
  <ul class="sideBar">
    <li class="first"> <a href="<?php echo $this->Html->url(array('controller'=> 'trai-cay-noi', 'ext'=>'html')); ?>" title="TRÁI CÂY NỘI"> <?php echo $this->Html->image('img_fruit_01.jpg', array('width'=>'58','height'=>'43', 'alt'=>'TRÁI CÂY NỘI')); ?> <span>TRÁI CÂY NỘI</span> </a>
      <ul>
        <li class="first"><a href="#" title="Bưởi">Bưởi</a></li>
        <li><a href="#" title="Xoài">Xoài</a></li>
        <li><a href="#" title="Nhãn">Nhãn</a></li>
        <li><a href="#" title="Quýt">Quýt</a></li>
      </ul>
    </li>
    <li> <a href="<?php echo $this->Html->url(array('controller'=> 'trai-cay-ngoai', 'ext'=>'html')); ?>" title="TRÁI CÂY NGOẠI"><?php echo $this->Html->image('img_fruit_02.jpg', array('width'=>'58','height'=>'43', 'alt'=>'TRÁI CÂY NGOẠI')); ?><span>TRÁI CÂY NGOẠI</span> </a>
      <ul class="hidden">
        <li class="first"><a href="#" title="Bưởi">Bưởi</a></li>
        <li><a href="#" title="Xoài">Xoài</a></li>
        <li><a href="#" title="Nhãn">Nhãn</a></li>
        <li><a href="#" title="Quýt">Quýt</a></li>
        <li><a href="#" title="Chôm Chôm">Chôm Chôm</a></li>
        <li><a href="#" title="Măng Cầu">Măng Cầu</a></li>
        <li><a href="#" title="Thanh Long">Thanh Long</a></li>
      </ul>
    </li>
    <li> <a href="<?php echo $this->Html->url(array('action'=>'index','controller'=> 'requests')); ?>" title="COMBO"><?php echo $this->Html->image('img_fruit_03.jpg', array('width'=>'58','height'=>'43', 'alt'=>'COMBO')); ?><span>COMBO</span> </a> </li>
    <li> <a href="<?php echo $this->Html->url(array('action'=>'index','controller'=> 'gifts')); ?>" title="QUÀ CƯỚI HỎI"> <?php echo $this->Html->image('img_fruit_04.jpg', array('width'=>'58','height'=>'43', 'alt'=>'QUÀ CƯỚI HỎI')); ?><span>QUÀ CƯỚI HỎI</span> </a> </li>
    <li> <a href="<?php echo $this->Html->url(array('action'=>'index','controller'=> 'baskets')); ?>" title="GIỎ TRÁI CÂY"> <?php echo $this->Html->image('img_fruit_05.jpg', array('width'=>'58','height'=>'43', 'alt'=>'GIỎ TRÁI CÂY')); ?><span>GIỎ TRÁI CÂY</span> </a> </li>
  </ul>
  <!--sideBar-->
        <?php
            if(isset($best_buy_product[0])):
            $total_product =   sizeof($best_buy_product);
        ?>
        <!--Mach nho-->
        <div class="blockProSell">
          <h3>Sản phẩm bán chạy</h3>
          <ul>
            <?php
                $i = 1;
            foreach($best_buy_product AS $row):
                $class_css  =   '';
                if($i == $total_product){
                    $class_css  =   ' class="last"';
                }
            ?>
            <li<?php echo $class_css; ?>> <a href="<?php echo $this->Html->url(array('controller'=>'gio-trai-cay', 'action'=>'chi-tiet-gio-trai-cay', "{$row['Basket']['id']}-{$row['Basket']['alias']}")); ?>" title="<?php echo $row['Basket']['title']; ?>">
            <?php echo $this->Html->image($basket_image_thumb_url_path . $row['Basket']['images_small'], array('alt'=>$row['Basket']['title'])); ?>
            <span><?php echo $row['Basket']['title']; ?></span> </a> </li>
            <?php
                $i++;
            endforeach; ?>
          </ul>
        </div>
        <!--blockProSell-->
        <?php endif; ?>
</div>
<!--end context-->
<div class="content">
  <?php echo $this->Session->flash('msg'); ?>
  <ul class="breadcrumb">
    <li class="first"><a href="<?php echo $this->Html->url(array('action'=>'index','controller'=> 'baskets')); ?>" title="GIỎ TRÁI CÂY">GIỎ TRÁI CÂY</a></li>
    <li><?php echo $content['Basket']['title']; ?></li>
  </ul>
  <!--breadcrumb-->

  <div class="blockProDetail">
    <div class="lstProImg">
      <p class="imgLarge"><?php echo $this->Html->image($basket_image_thumb_url_path . $content['Basket']['images_large'], array('alt'=>$content['Basket']['title'],'width'=>'205', 'height'=>'174')); ?></p>
       <?php if(isset($photos[0])): ?>
       <div class="slideProduct"> <a class="prev product_prev" title="Pre" href="javascript:void(0);"><span class="uiIcon initIcon-14">&nbsp;</span></a>
        <div class="innerSlideProduct" id="list_product_photo">
          <ul>
            <?php foreach($photos AS $photo): ?>
                <li>
                    <a href="<?php echo $basket_gallery_thumb_url_path  . $photo['Basketphoto']['images']; ?>" title="<?php echo $photo['Basketphoto']['title']; ?>">
                        <?php echo $this->Html->image($basket_gallery_thumb_url_path . $photo['Basketphoto']['images'], array('alt'=>$photo['Basketphoto']['title'],'width'=>'55', 'height'=>'51')); ?>
                    </a>
                </li>
            <?php endforeach; ?>
          </ul>
        </div>
        <a class="next product_next" title="Next" href="javascript:void(0);"><span class="uiIcon initIcon-15">&nbsp;</span></a> </div>
      <!--slideProduct-->
      <?php endif; ?>
    </div>
    <!--lstImg-->
    <div class="productDetails">
      <p class="titProduct"><?php echo $content['Basket']['title']; ?></p>
      <ul>
        <li><strong>Giá Tiền:</strong> <?php echo $content['Basket']['price']; ?></li>
        <li><strong>Thành phần:</strong> <?php echo $content['Basket']['note']; ?></li>
        <li><strong>Đơn vị tính:</strong> Giỏ</li>
        <li><strong>Số lượng:</strong> <input size="5" maxlength="5" type="text" id="cart_quantity" name="cart_quantity" value="1" /></li>
        <li><a onclick="cart.basket_add_cart();"; href="javascript:void(0);" title="Mua hàng" class="btn btnType-4"><span><span><?php echo $this->Html->image('icon_arrow_03.png', array('alt'=>'Mua hàng','width'=>'6', 'height'=>'11')); ?>Mua hàng</span></span></a></li>

    </ul>
        <input type="hidden" id="cart_product_name" name="cart_product_name" value="<?php echo $content['Basket']['title']; ?>" />
        <input type="hidden" id="cart_product_cart_id" name="cart_product_cart_id" value="basket_<?php echo $content['Basket']['id']; ?>" />
        <input type="hidden" id="cart_product_id" name="cart_product_id" value="<?php echo $content['Basket']['id']; ?>" />
        <input type="hidden" id="cart_type" name="cart_type" value="2" />
        <input type="hidden" id="cart_unit" name="cart_unit" value="Giỏ" />
        <input type="hidden" id="cart_image" name="cart_image" value="<?php echo $basket_image_thumb_url_path . $content['Basket']['images_small']; ?>" />
        <input type="hidden" class="extra" id="cart_ties" name="ties" value="" />
        <input type="hidden" class="extra" id="cart_text" name="text" value="" />
         <input type="hidden" id="cart_url" name="cart_url" value="<?php echo $this->here; ?>" />
        <input type="hidden" id="choose_text_option_type" name="choose_text_option_type" name="text" value="1" />
        <input type="hidden" id="cart_price" name="cart_price" value="<?php echo $content['Basket']['price']; ?>" />
    </div>
    <!--productDetails-->
  </div>
  <!--blockProDetail-->
        <?php if(isset($ties[0])): ?>
        <div class="slideShowBlock" id="list_ties">
            <p class="titProOther">Mẫu nơ buộc giỏ có sẵn</p>
            <div class="slideShow slideType03">
              <div class="wrapSlide"> <a href="javascript:void(0);" title="Pre" class="prev ties_prev"><span class="uiIcon24 initIcon24-1 png">&nbsp;</span></a>
                <div class="innerSlide">
                  <ul class="blockItemGame">
                    <?php foreach($ties AS $ties_row): ?>
                    <li>
                     <img src="<?php echo $ties_img_url_path . $ties_row['Ties']['images']; ?>" width="121" height="114" alt="<?php echo $ties_row['Ties']['title']; ?>" />
                        <span><?php echo $ties_row['Ties']['title']; ?></span>
                        <input type="hidden" name="ties_ids" value="<?php echo $ties_row['Ties']['id']; ?>" />
                    </li>
                    <?php endforeach; ?>
                  </ul>
                  <!--blockItemGame-->
                </div>
                <!--innerSlide-->
                <a href="javascript:void(0);" title="Next" class="next ties_next"><span class="uiIcon24 initIcon24-2 png">&nbsp;</span></a> </div>
              <!--wrapSlide-->
            </div>
            <!--slideShow-->
        </div>
      <!--end slideShowBlock-->
      <?php endif; ?>
      <?php if(isset($text[0])): ?>
      <div class="slideShowBlock" id="list_text">
            <p class="titProOther">Mẫu chữ dán trên giỏ có sẵn</p>
            <p><input type="radio" onclick="choose_text_option('1');" name="choose_text_option" value="1" checked="checked">Chọn những mẫu có sẵn</p>
            <div class="slideShow slideType04">
              <div class="wrapSlide"> <a href="javascript:void(0);" title="Pre" class="prev text_prev"><span class="uiIcon24 initIcon24-1 png">&nbsp;</span></a>
                <div class="innerSlide">
                  <ul class="blockItemGame">
                    <?php foreach($text AS $text_row): ?>
                    <li>
                     <img src="<?php echo $text_img_url_path . $text_row['Text']['images']; ?>" width="210" height="49" alt="<?php echo $text_row['Text']['title']; ?>" />
                         <span><?php echo $text_row['Text']['title']; ?></span>
                         <input type="hidden" name="text_ids" value="<?php echo $text_row['Text']['id']; ?>" />
                    </li>
                    <?php endforeach; ?>
                  </ul>
                  <!--blockItemGame-->
                </div>
                <!--innerSlide-->
                <a href="javascript:void(0);" title="Next" class="next text_next"><span class="uiIcon24 initIcon24-2 png">&nbsp;</span></a> </div>
              <!--wrapSlide-->
            </div>
            <p><input type="radio" onclick="choose_text_option('2');" name="choose_text_option" value="2" />Nhập nội dung</p>
            <p><input type="text" name="text_option" id="text_option" disabled="disabled"  /></p>
            <!--slideShow-->
      </div>
      <!--end slideShowBlock-->
      <?php endif; ?>
  <div class="blockContNote">
    
    <div class="fckDefault">
        <?php echo $content['Basket']['description']; ?>
    </div>
  </div>
  <!--blockContNote-->

  <?php if(isset($others[0])): ?>
  <p class="titProOther">Sản phẩm khác cùng chủng loại</p>
  <div class="productBlock productBlock02">
    <ul class="lstProduct ">
      <?php
        $the_first_row  =   true;
        foreach($others AS $other_row):
            if($the_first_row){
                $class_css  =   ' class="first"';
                $the_first_row = false;
            }else{
                $class_css  =   '';
            }
        ?>
      <li<?php echo $class_css; ?>>
        <a href="<?php echo $this->Html->url(array('controller'=>'gio-trai-cay', 'action'=>'chi-tiet-gio-trai-cay', "{$other_row['Basket']['id']}-{$other_row['Basket']['alias']}")); ?>" title="<?php echo $other_row['Basket']['title']; ?>">
        <?php echo $this->Html->image($basket_image_thumb_url_path . $other_row['Basket']['images_small'], array('alt'=>$other_row['Basket']['title'],'width'=>'160', 'height'=>'135')); ?>
        </a>
        <p class="detailBlock"> <span class="title"><?php echo $other_row['Basket']['title']; ?></span> <span class="price"><?php echo $other_row['Basket']['price']; ?>VNĐ</span> <a class="btn btnType-4" title="Mua hàng" href="#"><span><span>
        <?php echo $this->Html->image('icon_arrow_03.png', array('alt'=>$other_row['Basket']['title'],'width'=>'6', 'height'=>'11')); ?>
        Mua hàng</span></span></a> </p>
      </li>
      <?php endforeach; ?>
    </ul>
    <!--end lstProduct-->
  </div>
  <?php endif; ?>
  <!--end productBlock-->
  <?php if(isset($data_comments[0])): ?>
  <div class="listComment">
    <p class="titComment">
    <?php echo $this->Html->image('dummy.gif', array('alt'=> 'Bình luận','class'=>'uiIcon initIcon-29')); ?>
    <span>Bình luận</span></p>
    <div class="blockComment">
      <?php foreach($data_comments AS $comment_row): ?>
      <dl>
        <!--
        <dt>
            <?php echo $this->Html->image('img_usrComment.png', array('width'=>'50','height'=> '50','alt'=> 'User Comment')); ?>
        </dt>
        -->
        <dd>
          <p><strong><?php echo $comment_row['Comment']['subject']; ?></strong> - <?php echo $comment_row['User']['name']; ?></p>
          <p><?php echo $comment_row['Comment']['content']; ?></p>
          <span>(<?php echo $comment_row[0]['Comment.created']; ?>)</span> </dd>
      </dl>
      <?php endforeach; ?>
    </div>
    <!--blockComment-->
    <div class="titComment txtAlignC"><?php echo $this->element('paging', array('paging'=>$this->Paginator));?></div>
  </div>
  <!--listComment-->
  <?php
    endif;
    if($login_status){
        echo $this->Form->create('Comment', array('name'=>'frmComment', 'id'=>'frmComment','class'=>'blockInfo','url'=> array('controller'=>'comments', 'action'=>'post'))); ?>
    <?php echo $this->Html->image('dummy.gif', array('class'=>'uiIcon initIcon-10','width'=>'50','height'=> '50','alt'=> 'Icon Comment')); ?>
    <ul>
      <li><strong>Gửi bình luận của bạn</strong></li>
      <li>
        <?php echo $this->Form->input('subject', array('value'=>'Tiêu đề', 'id'=>'txtCommName', 'type'=>'text', 'label'=>false)); ?>
      </li>

      <li>
        <?php echo $this->Form->input('content', array('rows'=>'1', 'cols'=>'1','value'=>'', 'id'=>'txtComment', 'type'=>'textarea', 'label'=>false)); ?>
      </li>
      <li> <a href="javascript:void(0);" title="Gửi thông tin" class="btn btnType-3 submit"><span><span>Gửi thông tin</span></span></a>
            <a href="javascript:void(0);" title="Nhập lại" class="btn btnType-3 reset"><span><span>Nhập lại</span></span></a> </li>
    </ul>
 <?php echo $this->Form->hidden('module', array('value'=>'basket', 'secure'=>1)); ?>
<?php echo $this->Form->hidden('module_unique_id', array('value'=>$basket_id, 'secure'=>1)); ?>
  <?php
    
    echo $this->Form->end();
    }else{
    ?>
    <p class="comment_nologin">Bạn phải đăng nhập để tham gia bình luận</p>
  <!--blockComment-->
    <?php } ?>
</div>
<!--end content-->
</div>